package com.heima.admin.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.admin.dtos.SensitiveDto;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.pojos.WmSensitive;

public interface AdSensitiveService extends IService<WmSensitive> {

    /**
     * 删除敏感词
     * @param id
     * @return
     */
    ResponseResult delete(Integer id);

    /**
     * 敏感词分页查询
     * @param dto
     * @return
     */
    ResponseResult findList(SensitiveDto dto);

    /**
     * 保存敏感词
     * @param wmSensitive
     * @return
     */
    ResponseResult saveSensitive(WmSensitive wmSensitive);

    /**
     * 修改敏感词
     * @param wmSensitive
     * @return
     */
    ResponseResult updateSensitive(WmSensitive wmSensitive);
}
